// 扩展一、size与capacity
/**
 *
 */

#include <iostream>
#include <vector>
int main(void)
{
  std::vector<int> vec;
  std::cout << "vec size: " << vec.size() << std::endl;
  std::cout << "vec capacity: " << vec.capacity() << std::endl;

  vec.resize(10);
  // vec.resize(10, 18);
  // vec.reserve(10);
  std::cout << "vec[5]: " << vec[5] << std::endl;
  std::cout << "vec size: " << vec.size() << std::endl;
  std::cout << "vec capacity: " << vec.capacity() << std::endl;

  vec.push_back(1);
  std::cout << "vec size: " << vec.size() << std::endl;
  std::cout << "vec capacity: " << vec.capacity() << std::endl;

  printf("---------------end------------------\n");
  return 0;
}